package cn.agiledata.bank.barcodepayment.service;

import java.util.List;

import cn.agiledata.bank.barcodepayment.dao.BarCodePayDetailDao;
import cn.agiledata.bank.barcodepayment.dao.BarCodePayCorpDao;
import cn.agiledata.bank.barcodepayment.dao.BarCodePayTypeDao;
import cn.agiledata.bank.barcodepayment.form.BarCodePayForm;
import cn.agiledata.bank.barcodepayment.form.BarCodeQueryPageList;
import cn.agiledata.bank.common.util.PageBean;
import cn.agiledata.bank.hibernateBean.BarCodePayDetail;

public class BarCodeQueryServiceImpl implements BarCodeQueryService {
    private BarCodePayDetailDao dd;
    private BarCodePayCorpDao cd;
    private BarCodePayTypeDao td;


    public BarCodePayDetail unLogHistoryDetail(String barCode) {
        return dd.unLogHistoryDetail(barCode);
    }

    public PageBean logHistoryDetail(BarCodePayForm form) {
        BarCodeQueryPageList ql = new BarCodeQueryPageList(form);
        return ql.getAccountListPageBean();
    }
    
    public List getPayCompany(Long id) {
        return cd.getBarCodePayCorpById(id);
    }
    
    public List getPayType() {
        return td.getBarCodePayType();
    }

    public BarCodePayCorpDao getCd() {
        return cd;
    }

    public void setCd(BarCodePayCorpDao cd) {
        this.cd = cd;
    }

    public BarCodePayDetailDao getDd() {
        return dd;
    }

    public void setDd(BarCodePayDetailDao dd) {
        this.dd = dd;
    }

    public BarCodePayTypeDao getTd() {
        return td;
    }

    public void setTd(BarCodePayTypeDao td) {
        this.td = td;
    }

}
